package uk.co.lunagroup.files;

import javax.swing.JFileChooser;
import javax.swing.filechooser.FileFilter;

/**
 * . Class which holds parameters for configuring JFileChooser
 * 
 * @author robert.kowalski
 * 
 */
public class ParametersForJFileChooser {

	private String pathName;
	private String dialogTitle;
	private FileFilter filter;
	private int selectionMode;

	// default constructor with proposed initial values
	public ParametersForJFileChooser() {
		// default values
		this.pathName = ".";
		this.dialogTitle = "Choose File";
		this.selectionMode = JFileChooser.FILES_AND_DIRECTORIES;
		// this.filter = filter;
	}

	public String getDialogTitle() {
		return dialogTitle;
	}

	public void setDialogTitle(final String dialogTitle) {
		this.dialogTitle = dialogTitle;
	}

	public FileFilter getFilter() {
		return filter;
	}

	public void setFilter(final FileFilter filter) {
		this.filter = filter;
	}

	public int getSelectionMode() {
		return selectionMode;
	}

	public void setSelectionMode(final int selectionMode) {
		this.selectionMode = selectionMode;
	}

	public String getPathName() {
		return pathName;
	}

	public void setPathName(final String inputPathName) {
		this.pathName = inputPathName;
	}
}
